package de.koller.faculae.render;

import de.koller.faculae.FNode;
import de.koller.oceanFramework.tree.Child;
import java.awt.Graphics2D;

public class FRender extends FNode {
	
	@Child public final FCamera camera = new FCamera();
	
	@Override
	protected void init() {
		super.init();

	}

	public void renderThis( Graphics2D g ) {
//		g.setRenderingHint( RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY );
//		g.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
//		g.setRenderingHint( RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY );
//		g.setRenderingHint( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR );
//		g.setRenderingHint( RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY );
//		g.setRenderingHint( RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_DEFAULT );
//		g.setRenderingHint( RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON );
		
		camera.transpose( g );
		
		froot.engine.planet.renderThis( g );
		
		camera.restore( g );
	}
	
}
